package com.hk.rabbitmq.two;

import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.StrUtil;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author: dpb
 * @date: 2022/3/14
 */
public class validateTest {
    public static void main(String[] args) {

        List<String> list1 = Arrays.asList("zs","ls","zww","fw");
        List<String> list2 = Arrays.asList("ss","fw","ww","jj");

        list1.stream().forEach(list01 -> {
//            list2.stream().forEach(list02 -> {
//                if (list01.equals(list02)){
//                    System.out.println(list01);
//                }
//            });
            System.out.println(list2.indexOf(list01) != -1);
        });

    }
}
